Skip to content

Identifying errors in algorithms

![Alt text](../7.4 Standard methods of solution/image.png)

Identifying errors in algorithms

  • Use a trace table and the test data 400, 800, 190, 170, 300, 110, 600, 150, 130, 900 to record another dry run of the highest and lowest number.

Alt text

A ← 0
B ← 0
C ← 100
OUTPUT "Enter your ten values"
REPEAT
	INPUT X
	IF X > B
		THEN B←X
	ENDIF
    IF X < C
		THEN C←X
	ENDIF
	A ← A + 1
UNTIL A = 10
OUTPUT B, C